//
//  HomeNetWorkRequest.m
//  PropertyMananger
//
//  Created by bh on 17/1/9.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "HomeNetWorkRequest.h"

@implementation HomeNetWorkRequest
#pragma mark -通讯录
+ (void)postAttentionSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param
{
    NSString * urlStr = [NSString stringWithFormat:@"%@/AppWorker/AppWorker.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 楼栋查询
+ (void)postFloorQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param
{
    
    NSString * urlStr = [NSString stringWithFormat:@"%@/RoomInfo/RoomInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 单元查询
+(void)postUnitQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/RoomInfo/RoomInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 房屋查询
+(void)postHouseQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param
{
    NSString * urlStr = [NSString stringWithFormat:@"%@/RoomInfo/RoomInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 业主查询
+(void)postOwnerQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param
{
    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/OwnerInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 车位查询
+(void)postParkingQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param
{
    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/CarParkInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}


#pragma mark - 车牌号查询
+(void)postCarNumQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/CarParkInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 日常巡检
+(void)postDailyInspectionSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Routing_Inspect.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}


#pragma mark - 设备查询
+(void)postEquipmentQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Equipment.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}


#pragma mark - 设备检修
+(void)postEquipmentRepairSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Equipment.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
}


#pragma mark - 新增设备
+(void)postAddEquipmentSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Equipment.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 保养计划
+(void)postMaintenancePlanSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Equipment.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 抄表查询
+(void)postCheckReadingQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/MeterReading.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 计费周期
+(void)postChargeBillingCycleSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/MeterReading.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 保存抄表
+(void)postSaveReadingQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{
    
    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/MeterReading.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
    
}

#pragma mark - 物业缴费查询
+(void)postPropretyPayQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/ChargeBill.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 车牌号缴费查询
+(void)postCarNumPayQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{
    
    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/ChargeBill.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
    
}

#pragma mark - 领导报表
+(void)postLeaderFromSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/Report.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}


#pragma mark - 获取智家居妙兜门禁Key
+(void)postMDKeySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{
    NSString * urlStr = [NSString stringWithFormat:@"%@/AppWorker/AppWorker.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
}

#pragma mark - 领导报表报表月进度明细
+(void)postLeaderFromDetailListSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 领导报表月工单统计
+(void)postLeaderFromMonthStasticsSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 首页消息
+(void)postHomeMessageSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/MyInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 标记消息已读及删除
+(void)postMarkMessageSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/MyInfo.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
@end
